package com.hmy.infrastructure.api.bo.response.dingtalk;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

/**
 * 获取企业内部应用access_token返回消息
 *
 * @author lihui
 * @description: 返回accessToken
 * @date 2023/11/22
 */
@Data
public class AppTokenResponse extends BaseResponse {

    /**
     * 鉴权token
     */
    @JsonProperty(value = "access_token")
    private String accessToken;

    /**
     * 过期时间
     */
    @JsonProperty(value = "expires_in")
    private int expiresIn;

    @Override
    public String toString() {
        return super.toString() + "," + "AppTokenResponse{" +
                "accessToken='" + accessToken + '\'' +
                ", expiresIn=" + expiresIn +
                '}';
    }
}
